setStrokeCap

abstract fun setStrokeCap(block: DesignBlock, cap: StrokeCap)

Deprecated

Use setStrokeStartCap and setStrokeEndCap to set each end independently.

Replace with

setStrokeStartCap(block, cap)

Set the stroke cap of the given design block. Writes both the start and end caps to the same value. Required scope: "stroke/change"

Parameters

block

the block whose stroke cap should be set.

cap

the stroke cap to be set.